package com.cloud.server.domain.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author liuyuan
 * @since 2021-11-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("o_order_integral_details")
public class OrderIntegralDetails extends Model<OrderIntegralDetails> {

    private static final long serialVersionUID=1L;

    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 操作人id
     */
    private Long operationId;

    /**
     * 积分id
     */
    private Long integralId;

    /**
     * 班级id
     */
    private String idClass;

    /**
     * 批次订单号
     */
    private String orderBatchSeq;

    /**
     * 流水号
     */
    private String orderSeq;

    /**
     * 宿舍号
     */
    private String dormitoryNo;

    /**
     * 班级名称
     */
    private String className;

    /**
     * 图片地址
     */
    private String imagesUrl;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 产品代码
     */
    private String productCode;

    /**
     * 标题
     */
    private String title;

    /**
     * 扣分内容
     */
    private String content;

    /**
     * 备注
     */
    private String remark;

    private String status;

    private String unionId;

    private String openId;

    private OrderType orderType;

    /**
     * 类型
     */
    private IntegralType operationType;

    /**
     * 分值
     */
    private Long score;

    private LocalDateTime createDate;

    private LocalDateTime updateDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
